﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
using Zocono.WCS.Domain.EntityInfo;
using Zocono.WCS.Infrastructure.ApllicationDto.DtoWcsManage;

namespace Zocono.WCS.Domain.UserManageDomain
{
    public interface IRoleRightInfoService : IDomainService
    {
        /// <summary>
        /// 添加用户权限
        /// </summary>
        /// <param name="userRightInfoDto"></param>
        /// <returns></returns>
        Task<bool> AddRoleRightAsync(List<RoleRightInfoDto> roleRightInfoDto);


        /// <summary>
        /// 获取用户权限
        /// </summary>
        /// <param name="userID"></param>
        /// <returns></returns>
        Task<List<RoleRightInfoDto>> GetRoleRightAsync(long userID);

        Task<bool> DeleteRoleRightAsync(Expression<Func<RoleRightInfo,bool>> func);



        Task<List<RoleRightInfoDto>> GetRoleMenuByIDAsync(long roleID);
        //void Begin();

        //void Commit();

        //void RollBack();

    }
}
